<?php

namespace apiend\models;

use Yii;
use common\helpers\Url;

/**
 * 账号基本信息
 * @author emhome <emhome@163.com>
 * @since 1.0
 */
class UserMeta extends \common\models\user\UserMeta {

    public function fields() {
        return [
            'id',
            'username',
            'mobile',
            'avatar' => function() {
                return Url::attach($this->avatar);
            },
            'gender',
            'birthday',
            'register_time' => 'created_at',
            'company',
        ];
    }

}
